PKG_NAME = pillow_$(PKG_VERS)
PKG_REAL_NAME = pillow
PKG_VERS = 11.0.0
PKG_EXT = tar.gz
PKG_DIST_NAME = $(PKG_REAL_NAME)-$(PKG_VERS).$(PKG_EXT)
PKG_DIST_SITE = https://files.pythonhosted.org/packages/source/p/pillow
PKG_DIR = $(PKG_REAL_NAME)-$(PKG_VERS)

DEPENDS  = cross/freetype cross/libimagequant cross/libjpeg
DEPENDS += cross/libtiff cross/libwebp cross/zlib

HOMEPAGE = https://python-pillow.github.io/
COMMENT  = Python Imaging Library (Fork).
LICENSE  = MIT-CMU
WHEELS_BUILD_ARGS  = -C platform-guessing=disable
WHEELS_BUILD_ARGS += -C freetype=enable
WHEELS_BUILD_ARGS += -C imagequant=enable
WHEELS_BUILD_ARGS += -C jpeg=enable
WHEELS_BUILD_ARGS += -C tiff=enable
WHEELS_BUILD_ARGS += -C webp=enable
WHEELS_BUILD_ARGS += -C zlib=enable

#WHEELS_BUILD_ARGS += -C raqm=enable
#WHEELS_BUILD_ARGS += -C lcms=enable
#WHEELS_BUILD_ARGS += -C jpeg2000=enable
#WHEELS_BUILD_ARGS += -C xcb=enable

include ../../mk/spksrc.common.mk

ifeq ($(call version_le, $(TC_GCC), 5),1)
ADDITIONAL_CFLAGS = -std=c99
endif

include ../../mk/spksrc.python-wheel.mk
